package persistence.Impl;

import java.sql.Connection;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @projectName: petStore
 * @package: persistence.Impl
 * @className: TIMEtil
 * @author: suqianbei
 * @description: TODO
 * @date: 2021/11/3 17:17
 * @version: 1.0
 */
public class TIMEtil {
    public static final SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd 'at' HH:mm:ssz");
    private static Date date;

    public static String getTime() {
        date = new Date(System.currentTimeMillis());
        return format.format(date);
    }

}
